package com.vincent.dao;

import com.vincent.model.AdminRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("adminRoleMapper")
public interface AdminRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByRoleIds(@Param("id") Integer []id);

    int insert(AdminRole record);

    int insertSelective(AdminRole record);

    AdminRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminRole record);

    int updateByPrimaryKey(AdminRole record);

    List<Integer> selectRoleIdByAdminId(int adminId);
}